package com.zsrt.java.day20161230.wrl.demo04;

/**
 * Student04：子类
 * Persion04：父类
 * 
 * extends 继承（关键字）
 * 
 * --子类可以继承父类public方法,default,protected;  除了private
 * 
 * @author Administrator
 *
 */
public class Student04 extends Peosion04 {

	private String school;
	
	public void tst(){
		String xx = super.tst;
		System.out.println("利用super调用父类的tst"+xx);
	}

	@Override
	public String toString() {
		return "Student04 [name= " + getName() +", age= " + getAge()+", school= " + school +  "]";
	}

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}
	
}
